package com.wx.mall.feign;

import com.wx.mall.common.api.CommonResult;
import com.wx.mall.common.utils.DataResult;
import com.wx.mall.common.vo.sys.LoginLogVO;
import com.wx.mall.feign.hystrix.LoginLogFeignClientHystrix;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;

@FeignClient(value = "mall-sys", fallback = LoginLogFeignClientHystrix.class)
public interface LoginLogFeignClient {
    @GetMapping("/login-log/loginLog")
    @ApiOperation("新增登录日志")
    CommonResult add(@Valid LoginLogVO vo);
//    @GetMapping("/loginLog")
//    @ApiOperation("新增登录日志")
//    DataResult add(HttpServletRequest request,String ip );
}
